@layout("/common/_form.html",{js:["/assets/activity-apply/activity_apply_details.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<style>
.layui-form-item {
    margin-bottom: 0px;
    margin-top: 1px;
}
.layui-form-item .layui-input-inline {
    float: left;
    width: 250px;
    margin-right: 10px;
}
.layui-form-label {
    float: left;
    display: block;
    width: 130px;
    font-weight: 400;
    line-height: 20px;
    text-align: right;
    padding: 9px 15px;
}
.layui-input, .layui-textarea {
    display: block;
    width: 100%;
    padding-left: 10px;
    border-style: none;
}
.layui-card-header {
    position: relative;
    height: 42px;
    line-height: 42px;
    color: rgb(51, 51, 51);
    font-size: large;
    padding: 0px 15px;
    border-bottom: 1px solid rgb(246, 246, 246);
    border-radius: 2px 2px 0px 0px;
}
</style>
<form class="layui-form" id="userForm" lay-filter="userForm">
	<div class="layui-fluid" style="padding-bottom: 75px;">
		<input type="hidden" id="id" name="id" value="${apply.id}">
		<div class="layui-card">
			<div class="layui-card-header">个人档案</div>
			<div class="layui-card-body">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">头像：</label>
						<div class="layui-input-inline">
							<img style="width: 35px;" src="${apply.avatar}">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">艺名：</label>
						<div class="layui-input-inline">
							<input type="text" name="email" lay-verify="email"
								autocomplete="off" class="layui-input" value="${apply.nickName}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">真实姓名：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${apply.userName}" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">性别：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${apply.sexName}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">电话：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${apply.phone}" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">邮箱：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${apply.mailbox}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">个人/组合：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${apply.userTypeName}" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">组合名：</label>
						<div class="layui-input-inline">
							<input type="text" name="email" lay-verify="email"
								autocomplete="off" class="layui-input" value="${apply.combinationName}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">组合人数：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${apply.userNum}" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">常驻地址：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${apply.address}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">赛区：</label>
						<div class="layui-input-inline">
							<input type="text" name="email" lay-verify="email"
								autocomplete="off" class="layui-input" value="${apply.division}" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">比赛编号：</label>
						<div class="layui-input-inline">
							<input type="text" name="email" lay-verify="email"
								autocomplete="off" class="layui-input" value="${apply.userNo}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">报名时间：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${apply.createTimes,'yyyy-MM-dd HH:mm:ss'}" disabled>
						</div>
					</div>
					<div class="layui-inline">
					</div>
				</div>
			</div>
			<div class="layui-card-header">投票情况</div>
			<div class="layui-card-body">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">总票数：</label>
						<div class="layui-input-inline">
							 <input name="date" id="date" value="${apply.totalCount}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">今日新增票数：</label>
						<div class="layui-input-inline">
							 <input name="date" id="date" value="${apply.dayCount}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
			</div>
			@if(apply.status==2){
			<div class="layui-card-header">评委打分</div>
			<div class="layui-card-body">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">分数：</label>
						<div class="layui-input-inline">
							 <input name="scoring" id="scoring" value="${apply.scoring}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
			</div>
			@}
			<div class="layui-card-header">作品</div>
			<div class="layui-card-body">
				<div class="layui-form-item">
				<div>
				  <div class="layui-row layui-col-space15">
				    <div class="layui-col-md6">
				      <div class="layui-card">
						 <div style="line-height:0;font-size:0">
							<video width="100%" height="100%"  controls="controls" autobuffer="autobuffer"  loop="loop" src="${apply.personalWork}" style="width:100%;height:100%;"></video>
						 </div>
				      </div>
				    </div>
				     <div class="layui-col-md6">
				    @for(item in apply.activityList){
				      <div class="layui-card">
			 				<div class="layui-card-header">${item.worksnam}</div>
			 				<div class="layui-card-header">${item.original}</div>
			 				<div class="layui-card-header">${item.workname}</div>
				      </div>
				    @}
				     </div>
				  </div>
				</div> 
			</div>
			<div class="layui-card-header">证件照片</div>
			<div class="layui-card-body">
				@for(items in apply.applyList){
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">证件类型：</label>
						<div class="layui-input-inline">
							 <input name="date" id="date" value="${items.certificateType}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label"></label>
						 <div class="layui-input-inline">
							<img style="width: 240px; height: 160px;" src="${items.positive}">
						</div>
					</div>
					<div class="layui-inline">
						<div class="layui-input-inline">
							<img style="width: 240px; height: 160px;" src="${items.obverse}">
						</div>
					</div>
				</div>
				@}
			</div>
		</div>
	</div>
	</div>
	<div class="form-group-bottom text-center">
	 @if(shiro.hasPermission("/modular/activity_apply/audit")){
		@if(apply.status==1){
			<button type="button" class="layui-btn" style="width: 100px;" lay-filter="btnOpen" id="btnOpen">打分</button>
		@}
		@if(apply.status==2){
			<button type="button" class="layui-btn" style="width: 100px;" lay-filter="btnOpens" id="btnOpens">改分</button>
		@}
	 @}
		<button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;返回&emsp;</button>
	</div>

</form>

@}
